#ifndef _C_GL_RENDER_TARGET_VIEW_H_
#define _C_GL_RENDER_TARGET_VIEW_H_

#include "../interface/I_api_RenderTargetView.h"

class C_gl_RenderTargetView : public I_api_RenderTargetView
{
protected:
	friend class C_gl_Device;

	int	m_TexId;

	C_gl_RenderTargetView(I_api_Resource * pResource, const S_api_RenderTargetView_Desc * pDesc,  I_api_Device * pDevice) 
		: I_api_RenderTargetView(pResource, pDesc, pDevice) 
	{	
		m_TexId = *((int *)pResource->Get());
	}
public:
	virtual	void	*	Get() { return &m_TexId; }
};

#endif